<?php

declare(strict_types=1);

namespace App\Model\Authentication;

use App\Model\Model;
use Hyperf\Database\Model\Relations\BelongsToMany;

class Role extends Model
{
    protected ?string $table = 'role';

    public function menus(): BelongsToMany
    {
        return $this->belongsToMany(Menu::class, 'role_menu', 'role_id', 'menu_id');
    }
}
